import { createApp } from 'vue'
import { createMemoryHistory, createRouter } from 'vue-router'
import { createPinia } from 'pinia'
const pinia = createPinia()
import './style.css'
import App from './App.vue'
import Home from './pages/Home.vue'
import Me from './pages/Me.vue'

// 路由对象
const routes = [
    { path: '/', component: Home },
    { path: '/me', component: Me },
]

// 路由实例
const router = createRouter({
    history: createMemoryHistory(),
    routes,
})

createApp(App).use(router).use(pinia).mount('#app')
